<?php

require PATH_MODELS . 'DbConfig.class.php';

class NewsModel extends DbConfig {

    private $conn_main = null;
    private $conn_user = null;

    function __construct() {
        $this->conn_main = parent::DbConnMain();
        $this->conn_user = parent::DbConnUser();
    }

    /**
     * 取答案
     */
    function getAnswers() {
        return $this->conn_main->getMoreSelect(parent::$db_main['answers'],'Fid,FuserName','LIMIT 10');
    }
    
    
    function getOneAnswer() {
        $this->conn_main->getOneSelect(parent::$db_main['answers']);
    }

}
